<?php
require_once("checklogin.php");
require_once("classQuanTriTin.php");
$qt = new quantritin;


//Xóa customer
if (isset($_GET['idCustomer'])==true){
	$idCustomer = $_GET['idCustomer']; 
	settype($idCustomer,"int");
	$qt->DeleteCustomer($idCustomer);
	header("location:main.php?p=customer_list");
}

//Xóa customer(s)
if (isset($_GET['listid'])==true){
$listid = explode(",",$_GET['listid']); 
for ($i=0 ; $i<count($listid) ; $i++){
	$idCustomer = $listid[$i]; 	
	$qt->DeleteCustomer($idCustomer);
}
header("location:main.php?p=customer_list");
}
?>